package com.hzdy.master.entity.OID;

import com.hzdy.master.entity.Detail;
import com.hzdy.master.entity.data.DataElement;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LALA
 * Date: 2019-03-11
 * Time: 9:34
 */
@Getter
@Setter
@Entity
@Table(name = "oid")
public class OID extends Detail implements Serializable {


    //数据元
    @OneToOne
    private DataElement dataElement;

    @ManyToOne(
            cascade = CascadeType.REFRESH,
            fetch=FetchType.LAZY
    )
    private OIDType oidType;
}
